function stego_cover=divide_LHB_UHB_embed_process(bin_cover_orgin,bin_BA_mean,bin_embed_msg)
%UNTITLED3 此处显示有关此函数的摘要
%   此处显示详细说明
s_i=0;
s_j=1;%用来指向隐写向量
%Test=reversemyImageBitPlaneSlicing(bin_cover_orgin);%原始的10进制数
[col,raw,k]=size(bin_cover_orgin);
for i=1:4:col
    s_i=s_i+1;
    s_j=1;
    for j=1:4:raw
        UHB=bin_cover_orgin(i:i+1,j:j+3,:);%Test2=reversemyImageBitPlaneSlicing(UHB);
        LHB=bin_cover_orgin(i+2:i+3,j:j+3,:);%Test3=reversemyImageBitPlaneSlicing(LHB);
        Stego_LSB_UHB=embed_process(UHB(:,:,1),bin_embed_msg(s_i,s_j,:));%LSB替换，取最低位就好
        Stego_LSB_LHB=embed_process(LHB(:,:,1),bin_BA_mean(s_i,s_j,:));
        UHB(:,:,1)=Stego_LSB_UHB;
        LHB(:,:,1)=Stego_LSB_LHB;
        stego_cover(i:i+3,j:j+3)=[reversemyImageBitPlaneSlicing(UHB);reversemyImageBitPlaneSlicing(LHB)];
        s_j=s_j+1;
    end
end
end

function LSB_Stego=embed_process(X,S)
[col,raw]=size(X);
p=1;
for i=1:col
    for j=1:raw
    X(i,j)=S(p);%这里利用了Matlab的弱数据类型，i以行优先的顺序遍历X
    p=p+1;
    end
end
LSB_Stego=X;
end

